package edu.kpi.pzks2.graph;

import java.io.Serializable;

public class Edge implements Serializable, HasWeight {
    private static final long serialVersionUID = 1166938583990624801L;
    
    private int id;
    private int weight;
    
    public Edge(int id) {
        this.id = id;
    }
    
    @Override
    public String toString() {
        return "Edge" + id;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int w) {
        this.weight = w;
    }
}
